// 首页
header {
    display: flex;
    height: 40px;
    background-color: #c91523;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    // 当块级元素加上定位厚，其宽度会变成由内容撑开，不会随着屏幕变化，即要加上width:100%

    .logo {
        width: 70px;
        background: url(../images/jd-sprites.png) no-repeat 4px -112px;
        background-size: 218px;
        text-indent: -9999px;
    }

    .search {
        flex: 1;
        padding: 5px 0;
        position: relative;
        overflow: hidden;

        &::before {
            content: "";
            position: absolute;
            width: 24px;
            height: 24px;
            background: url(../images/jd-sprites.png) no-repeat -60px -108px;
            background-size: 200px;
            left: 12px;
            top: 10px;
        }

        input {
            width: 100%;
            height: 100%;
            border-radius: 30px;
            padding-left: 35px;
        }
    }

    .login {
        width: 50px;
        color: #fff;
        font-size: 16px;
        text-align: center;
        line-height: 40px;
    }
}

// 导航
nav {
    display: flex;
    flex-wrap: wrap;
    text-align: center;

    a {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 25%;
        padding: 5px 0;

        img {
            width: 50%;
        }

        span {
            font-size: 14px;
            color: #666;
        }
    }
}

// 掌上秒杀
.hand {
    margin-top: 10px;

    .hand-t {
        display: flex;
        justify-content: space-between;
        align-items: center;

        .hand-t-l {
            display: flex;
            padding-left: 10px;

            >span {
                padding-right: 10px;
                color: #d31523;
            }

            .shijian {
                display: flex;
                justify-content: space-between;
                text-align: center;
                width: 120px;

                span {

                    width: 12px;
                    background-color: #000;
                    color: #fff;
                }

                span:nth-child(3n) {
                    background-color: #fff;
                    color: #000;
                }
            }
        }

        .hand-t-r {
            font-size: 14px;
        }
    }

    .hand-b {
        display: flex;
        padding-top: 15px;

        a {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;

            span {
                color: #d31523;
                font-size: 14px;
            }

            del {
                color: #666;
            }

            p {
                position: absolute;
                left: 46px;
                top: 63px;
                width: 50px;
                height: 25px;
                line-height: 25px;
                background-color: #fdb60a;
                border-radius: 50%;
                font-size: 14px;
                text-align: center;
                color: #fff;
            }
        }

    }
}

// 618神劵
.god {
    position: relative;
    width: 100%;
    // background: url(../uploads/banner_bg.jpg) no-repeat;
    // background-size: 100%;
    // display: flex;
    // flex-wrap: wrap;
    // padding: 54px 5px 5px;

    // a {
    //     flex: 1;
    // }

    // .phone {
    //     flex: 1;
    // }
    // 使用背景图片，当页面放大或者缩小的时候，背景不会等比例放大，而图片会。
    .phone{
        position: absolute;
            bottom: 0;
        a{
            float: left;
            width: 50%;
           
        }
    }
}

// 手机专享
.zhuanxiang {
    display: flex;

    a {
        flex: 1;
    }
}

// 京东超市
.market {
    display: flex;
    flex-wrap: wrap;

    a {
        width: 50%;
        ;
    }
}

// 生活旅行
.life {
    padding: 0 5px;
}

// 特色超市
.tese {
    .tese-t {
        padding: 5px 0 0 5px;
        color: #c91523;
        font-weight: bold;
    }

    .tese-b {
        display: flex;
        flex-wrap: wrap;

        a {
            width: 50%;
        }
    }
}

// 粽子
.zongzi {
    padding: 0 5px;
}

// 主题街
.theme {
    .theme-t {
        padding: 5px 0 5px 5px;
        color: #c91523;
        font-weight: bold;
    }

    .theme-b {
        display: flex;

        .theme-b-l {
            flex: 1;
        }

        .theme-b-z {
            flex: 1;
            display: flex;
            flex-wrap: wrap;

            .aa {
                width: 100%;
            }

            .ab,
            .ac {
                width: 50%;
            }
        }
    }

    .theme-z {
        display: flex;
        flex-wrap: wrap;

        a {
            width: 25%;
        }
    }

}

// 洗衣
.xiyi {
    padding: 5px 5px;
}

// 品牌
.pinpai {
    .pinpai-t {
        padding: 5px 0 5px 5px;
        color: #c91523;
        font-weight: bold;
    }

    .pinpai-b {
        display: flex;

        .aa {
            flex: 4;
        }

        .ab,
        .ac {
            flex: 3;
        }
    }

}

// 奶粉
.naifen {
    padding: 5px 5px;
}

// 猜你喜欢
.like {
    padding: 5px 5px 0;

    .like-t {
        display: flex;
        justify-content: space-between;
        color: #c91523;
        position: relative;
        padding-bottom: 10px;

        .aa {
            font-weight: bold;
        }

        .ab {
            font-size: 13px;

            i {
                display: inline-block;
                position: absolute;
                width: 18px;
                height: 18px;
                background: url(../images/icon-login.png) no-repeat;
                background-size: 18px;
                right: 96px;
                top: 0px;
            }
        }
    }

    .like-b {
        display: flex;
        flex-wrap: wrap;

        .one {
            width: 50%;
            padding-bottom: 10px;

            .like-b-t {
                display: flex;
                justify-content: space-between;

                span {
                    color: #c91523;
                    padding-left: 10px;
                    ;
                }

                a {
                    text-align: center;
                    border: 1px solid #ccc;
                    font-size: 13px;
                    color: #666;
                    margin: 0 6px 4px 0;
                }

            }

            .like-b-b {
                font-size: 15px;
                border-bottom: 1px solid #ccc;
            }
        }

        .one:nth-child(2n-1) {
            padding-right: 5px;
        }

        .one:nth-child(2n) {
            padding-left: 5px;
        }
    }
}

// 底部
footer {
    background-color: #f3f5f7;
    color: #666;
    font-size: 13px;
    text-align: center;
    margin-bottom: 60px;

    .footer-t {
        padding: 10px 0;
        border-top: 1px solid #ccc;
        border-bottom: 1px solid #ccc;
    }

    .footer-z {
        display: flex;

        a {
            width: 25%;
            padding: 10px 0;
            border-bottom: 1px solid #ccc;
        }
        .line{
            padding: 10px 0;
        }
    }

    .footer-j {
        display: flex;
        justify-content: space-around;

        a {
            position: relative;
            padding: 50px 0 10px 0;

            i {
                display: inline-block;
                width: 33px;
                height: 33px;
                background: url(../images/jd-sprites.png) no-repeat;
                background-size: 200px;
                position: absolute;
                left: 4px;
                top: 12px;
            }
        }

        a:nth-child(1) i {
            background-position: -120px -70px;
        }

        a:nth-child(2) i {
            background-position: -40px -70px;
        }

        a:nth-child(3) i {
            background-position: -80px -70px;
        }

    }

    .footer-b {
        padding: 20px 0;
        border-top: 1px solid #ccc;
    }
}

// 底部信息
.infor{
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    height: 60px;
    a{
        width: 20%;
        img{
            height: 60px;
            width: 77px;
            margin: 0 auto;
        }
    }
}